package com.nzw.controller.commodity;

import com.nzw.controller.common.AbstractController;
import com.nzw.pojo.commodity.CommodityType;
import com.nzw.service.commodity.CommodityTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by 18573 on 2018/9/15.
 */

@RestController
@RequestMapping("/commodity")
public class CommodityController extends AbstractController {

    @Autowired
    CommodityTypeService commodityTypeService;



    @GetMapping("/getCommodityTypeById")
    public CommodityType getCommodityTypeById(@RequestParam Long id){

        return commodityTypeService.getCommodityTypeById(id);
    }







}
